<?php
require_once realpath(dirname(__FILE__) . '//..//..//pages.php');
require_once CLASS_FULL_TAG;

/**
 * This class represents HTML tag option
 *
 * @author Andrea Cantafio
 */
class Option extends FullTag {
    
    /**
     * Creates a new Option.
     * 
     * @param string $label label of this option.
     * @param mixed $value value of this option.
     * @param array $attributes [Optional]containing the attributes that will be applied to this tag.
     * The array must contain as keys the name of the attributes, pointing to their values.
     */
    public function __construct ($label, $value, $attributes = null) {
        $attributes['value'] = $value;
        $this->auto_new_line = false;
        $this->auto_tab = false;
        parent::__construct ("option", $attributes, $label);
    }
    
}

?>
